<nav class="navbar navbar-default navskin">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button aria-expanded="false" data-target="#bs-example-navbar-collapse-1" data-toggle="collapse" class="navbar-toggle collapsed" type="button">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <!-- <a href="#" class="navbar-brand">logo</a> -->
        </div>
        <!-- Collect the nav links, forms, and other content for toggling -->
        <div id="bs-example-navbar-collapse-1" class="collapse navbar-collapse">
            <ul class="nav navbar-nav navbar-left">
                <volist name='channel' id='nav'>
                    <li <if condition="$nav['selected']">class='active'</if>><a href="{:U($nav['name'].'/index')}">{$nav.title}</a></li>
                </volist>
            </ul>
           
            <ul class="nav navbar-nav navbar-right">
               
                <li class="dropdown">
                    <a aria-expanded="false" aria-haspopup="true" role="button" data-toggle="dropdown" class="dropdown-toggle" href="#">{:session('auth.username')} <span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="{:U('Admin/AccessAuth/romUser',array('id'=>session('auth.id')))}">修改密码</a></li>
                        <li><a href="{:U('Admin/Runtime/index')}" class='btn_ajax'>清除缓存</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="{:U('Admin/Login/dologinut')}" class='getajax'>退出登陆</a></li>
                    </ul>
                </li>
                
                 <li data-toggle="tooltip" data-placement="bottom" title="您有{$state}条未读消息"><a href="{:U('Index/notice')}"><span class="label label-danger">{$state}</span></a></li>
                
            </ul>
        </div>
        <!-- /.navbar-collapse -->
    </div>
    <!-- /.container-fluid -->
</nav>
